package com.dobbinsoft.iotechn.apigw.util;

import com.dobbinsoft.iotechn.core.constant.Const;

import javax.servlet.http.HttpServletRequest;

/**
 * Description:
 * User: rize
 * Date: 2020/6/24
 * Time: 14:37
 */
public class IpUtils {

    public static String getIpFromRequest(HttpServletRequest request) {
        return request.getHeader(Const.HEADER_IP);
    }

}
